package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestStep;
import gao.xiaolei.entity.TestStepBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
@Data
public class TestStepCopy extends TestStepBase {

    @Column(columnDefinition = "char(32)")
    private String testDesign;//测试计划Id

    @Column(columnDefinition = "char(40)")
    private String commitId;//用于储存文件的UUID

    public TestStepCopy(TestStep testStep, String commitId) {
        super(testStep.getId(),testStep.getName(),testStep.getFrontNode(),testStep.getBackNode(),testStep.getExpectedResult());
        this.testDesign = testStep.getTestDesign();
        this.commitId=commitId;
    }

    public TestStepCopy() {
    }
}
